package com.qumitech.visualnovel.service.gameData;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONArray;
import com.qumitech.visualnovel.controller.vo.gameData.*;
import org.apache.ibatis.annotations.Param;

import java.util.HashSet;
import java.util.List;

public interface GameDataService {

    GameDataDTO getPlayGameData(GameDataQueryDTO gameDataQueryDTO);

    JSONObject getOpenGameTimesLine(String startTime, String endTime, Long accountId, String []gameIds);

    JSONObject getOpenGameNumbersLine(String startTime, String endTime, String []gameIds);

    JSONObject getGameAverageTimesLine(String startTime, String endTime, String []gameIds);

    JSONObject getStatisticList(String startTime, String endTime, Long accountId, String []gameIds, Integer offset, Integer limit);

    JSONObject getDataQueryConfList(String id, String sysUserName, String startTime, String endTime, Integer offset, Integer limit);

    void modDataQueryConf(Long id, GameDataQueryConfDTO conf);

    void addDataQueryConfList(GameDataQueryConfDTO conf);

    void delDataQueryConf(Long id);

    JSONObject getDataQueryRecordList(String dataName, String argComments, String sysUserName,
        String startTime, String endTime, Integer offset, Integer limit);

    void addDataQueryRecordList(GameDataQueryRecordDTO record);

    JSONArray getDataQueryOptionsDataNames();

    JSONArray getDataQueryOptionsDataTypeNames(String dataType);

    JSONObject getDataQueryPermissionList();

    JSONObject getDataQueryRolePermission(Integer roleId, String type);

    void addDataQueryRolePermission(JSONObject permission);
}
